<%@ page language="java" contentType="text/html; charset=utf-8"
    pageEncoding="utf-8"%>
<%@ taglib uri="/struts-tags" prefix="s"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
	<head>
		<base href="<%=basePath%>">
		<title>notice_history page</title>
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
		<style type="text/css">
<!--
body {
	margin-left: 0px;
	margin-top: 0px;
	margin-right: 0px;
	margin-bottom: 0px;
}
a {
	text-decoration: none;
}
a:hover {
	color:#eee;
}
a img {
	border: 0;
}
.STYLE1 {
	font-size: 13px;
	color: #000;
}

.STYLE3 {
	font-size: 12px;
	font-weight: bold;
}

.STYLE4 {

	font-size: 12px;
}
-->
</style>

</head>
<body>	
	<script language="javascript" src="js/jquery.js"></script>
	<script language="javascript" src="js/tdColor.js"></script>
	
	
<!-- 	<table width="100%" border="0" cellspacing="0" cellpadding="0">  -->

	<table width="100%" border="0" cellspacing="0" cellpadding="0">

			<tr>
				<td height="30" background="images/main/tab_05.gif">
					<table width="100%" border="0" cellspacing="0" cellpadding="0">
						<tr>
							<td width="12" height="30">
								<img src="images/main/tab_03.gif" width="12" height="30" />
							</td>
							<td>
								<table width="100%" border="0" cellspacing="0" cellpadding="0">
									<tr>
										<td width="46%" valign="middle">
											<table width="100%" border="0" cellspacing="0"
												cellpadding="0">
												<tr>
													<td width="5%">
														<div align="center">
															<img src="images/main/tb.gif" width="16" height="16" />
														</div>
													</td>
													<td width="95%" class="STYLE1">
														<span class="STYLE3">你当前的位置</span>：[周报日志]-[我的周报]
													</td>
												</tr>
											</table>
										</td>
										<td width="54%">
											<table border="0" align="right" cellpadding="0"
												cellspacing="0">
												<tr>
													<td width="80">
														
													</td>
													<td width="60">
														<table width="90%" border="0" cellpadding="0"
															cellspacing="0">
															<tr>
																<td class="STYLE1"></td>
																<td class="STYLE1"></td>
															</tr>
														</table>
													</td>

												</tr>
											</table>
										</td>
									</tr>
								</table>
							</td>
							<td width="16">
								<img src="images/main/tab_07.gif" width="16" height="30" />
							</td>
						</tr>
					</table>
				</td>
			</tr>
			<tr>
				<td>
					<table width="100%" border="0" cellspacing="0" cellpadding="0">
						<tr>
							<td width="8" background="images/main/tab_12.gif">
								&nbsp;
							</td>
							<td>
								<table width="100%" border="0" cellpadding="0" cellspacing="1"
									bgcolor="b5d6e6">
									<tr bgcolor="#FFFFFF">
										<td width="60" height="22" background="images/main/bg.gif">
											<div align="center">
												<span class="STYLE1">序号</span>
											</div>
										</td>
										<td width="160" height="22" background="images/main/bg.gif">
											<div align="center">
												<span class="STYLE1">学期</span>
											</div>
										</td>
										<td width="120" height="22" background="images/main/bg.gif">
											<div align="center">
												<span class="STYLE1">周数</span>
											</div>
										</td>
										<td width="160" height="22" background="images/main/bg.gif">
											<div align="center">
												<span class="STYLE1">发表时间</span>
											</div>
										</td>
										<td height="22" background="images/main/bg.gif">
											<div align="center">
												<span class="STYLE1">学习内容</span>
											</div>
										</td>
										
										<td width="250" height="22" background="images/main/bg.gif">
											<div align="center">
												<span class="STYLE1">操作</span>
											</div>
										</td>
										
									</tr>
						
									<s:iterator value="weekLogList" var="weekLogList" status="status">

									<tr class="changeColor" bgcolor="#FFFFFF"
										style="font-weight: bold; color: #ff0000">
										<td height="20">
											<div align="center">
												<span class="STYLE1"><s:property value="#status.count"/></span>
											</div>
										</td>
										<td height="20">
											<div align="center">
												<span class="STYLE1"><s:property value="#weekLogList.schoolYear" /></span>
											</div>
										</td>
										<td height="20">
											<div align="center">
												<span class="STYLE1">第<s:property value="#weekLogList.weekNum" />周</span>
											</div>
										</td>
										<td height="20">
											<div align="center">
												<span class="STYLE1"><s:date name="#weekLogList.publishTime" format="yyyy年MM月dd日" nice="false" /></span>
											</div>
										</td>
										<td height="20">
											
											<div align="center">
												<span class="STYLE1">
												<s:set name="studyContent" value="#weekLogList.studyContent"></s:set>
												<s:if test="%{#studyContent.length() > 20}">
														<s:property value="#studyContent.substring(0, 20)" />......
													</s:if>
													<s:else>
														<s:property value="#studyContent" />......
													</s:else>
												</span>
											</div>
										</td>
										<td height="20">
											<div align="center" style="padding:0;font-weight:normal;font-size:11px">
												<span class="STYLE1">
													<a href="front/weeklogInfo.action?weekLog.id=<s:property value="#weekLogList.id" />&weekLog.user.id=<s:property value="#weekLogList.user.id" />" >查看详细</a>
												<!-- <a href="front/updateWeeklog.action?weekLog.id=<s:property value="#weekLogList.id" />" >修改</a> -->
													<a href="front/deleteWeeklog.action?weekLog.id=<s:property value="#weekLogList.id" />" onclick="return confirm('确认删除？');">删除</a>
												</span>
											</div>
										</td>
								</s:iterator>
								</table>
							</td>
							<td width="8" background="images/main/tab_15.gif">
								&nbsp;
							</td>
						</tr>

					</table>
				</td>
			</tr>
			<tr>
				<td height="35" background="images/main/tab_19.gif">
					<table width="100%" border="0" cellspacing="0" cellpadding="0">
						<tr>
							<td width="12" height="35">
								<img src="images/main/tab_18.gif" width="12" height="35" />
							</td>
							<td>
								<form action="front/weeklogMine.action" method="get">
									<table width="100%" border="0" cellspacing="0" cellpadding="0">
										<tr>
											<td class="STYLE4">
												&nbsp;&nbsp;共有 <s:property value="page.rowCount"/> 条记录,当前第 <s:property value="page.currentPage" /> / <s:property value="page.pageCount" /> 页
											</td>
											<td>
												<table border="0" align="right" cellpadding="0"
													cellspacing="0">
													<tr>
														<td width="40">
															<a href="front/weeklogMine.action?currentPage=1"><img src="images/main/first.gif" width="37" height="15" border="0" /></a>
														</td>
														<s:if test="page.currentPage != 1">
														<td width="45">
															<a href="front/weeklogMine.action?currentPage=<s:property value="page.currentPage-1"/>"><img src="images/main/back.gif" width="43" border="0" height="15" /></a>
														</td>
														</s:if>
														<s:if test="page.currentPage != page.pageCount">
														<td width="45">	
															<a href="front/weeklogMine.action?page.currentPage=<s:property value="page.currentPage+1"/>"><img src="images/main/next.gif" width="43" border="0" height="15" /></a>
														</td>
														</s:if>
														<td width="40">
															<a href="front/weeklogMine.action?page.currentPage=<s:property value="page.pageCount"/>"><img src="images/main/last.gif" border="0" width="37" height="15" /></a>
														</td>
														<td width="100">
															<div align="center">
																<span class="STYLE1">转到第 <input name="page.currentPage" type="text" size="4" style="height: 12px; width: 20px; border: 1px solid #999999;" />页 </span>
															</div>
														</td>
														<td width="40">
															<input type="image" src="/images/main/go.gif" width="37"
																height="15" />
														</td>
													</tr>
												</table>
											</td>
										</tr>
									</table>
								</form>
							</td>
							<td width="16">
								<img src="images/main/tab_20.gif" width="16" height="35" />
							</td>
						</tr>
					</table>
				</td>
			</tr>
		</table>
</body>
</html>